package com.xgzit.common.constant;

/**
 * @Author xgz
 * @date 2021-03-31 18:48
 */

public class ProductConstant {

    public enum AttrEnum{
        /**
         * 基本属性 1
         */
        ATTR_TYPE_BASE(1, "基本属性", "base"),
        /**
         * 销售属性 0
         */
        ATTR_TYPE_SALE(0, "销售属性", "sale");
        private int code;
        private String msg;
        private String type;
        AttrEnum(int code, String msg, String type) {
            this.code = code;
            this.msg = msg;
            this.type = type;
        }
        public int getCode() {
            return code;
        }
        public String getMsg() {
            return msg;
        }
        public String getType() {
            return type;
        }
    }

    public enum StatusEnum{
        /**
         * 新建
         */
        NEW_SPU(0, "新建"),
        /**
         * 上架
         */
        SPU_UP(1, "上架"),
        /**
         * 下架
         */
        SPU_DOWN(2, "下架");

        private int code;
        private String msg;

        StatusEnum(int code, String msg ) {
            this.code = code;
            this.msg = msg;

        }
        public int getCode() {
            return code;
        }
        public String getMsg() {
            return msg;
        }
    }
}
